import request from '@/router/axios';
export const uploadFilePhoto = (file, name) => {
  // const formData = new FormData(file);
  // formData.append('name', name);
  // file.forEach(file => {
  //   formData.append('file', file);

  // });
  // formData.append('type', type)   
  console.log(file.getAll('file'))
  console.log(file.getAll('type'))
  return request({

    url: '/api/updateFile/uploadFilePhoto',
    method: 'post',

    params: {
      file
    },

  })
}